package com.co.user.mapper;

import com.co.user.pojo.Later;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * @author ldl.plus
 * @date 2020年06月22日  0:41
 */
@org.apache.ibatis.annotations.Mapper
public interface LaterMapper extends Mapper<Later> {

    @Select("select aid from us_later where username=#{username} order by create_time asc")
    List<String> findLaterByUsername(@Param("username")String username);

    @Delete("truncate table us_later")
    void deleteAll();
}
